package com.myssm.mybatis.org.apache.ibatis.configuration;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.sql.DataSource;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Configuration {

    //数据源
    private DataSource dataSource;

    //封装sql语句，key为namespace+sql语句唯一标识id(即方法名)，value为sql对应的mappedStatement
    Map<String ,MappedStatement> mappedStatements=new ConcurrentHashMap<String ,MappedStatement>();
}
